package com.oauth2.dao;

import com.oauth2.domain.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author shipeilei
 * @date 2020-7-16 10:55:14
 * @desc desc
 */
public interface UserEntityDAO extends JpaRepository<UserEntity, Integer> {
    /**
     * 匹配姓名得到用户
     * @param username
     * @return
     */
    UserEntity findByUsername(String username);
}
